import request from '/@/utils/request';

const workable_api = import.meta.env.VITE_WORKABLE_API as string;

/**
 * 获取工作流信息
 * @param params 
 */
export function getWorkableJsPlumbData(params?: object){
    return request({
        url: workable_api + '/jsplumbdata/info',
        method: 'get',
        params: params
    })
}

/** 保存工作流信息 */
export function saveWorkableJsPlumbData(params? : object){
    return request({
        url: workable_api + '/jsplumbdata/save',
        method: 'post',
        data: params
    });
}

